<template>
	<view>
		<!-- 活动发布/创建活动页面 -->
		<view>
			<!-- 表单 -->
			<view class="ReleaseActivity" v-if="maxShow==0?true:false">
				<view class="f_first selectActivity" @click="wayiput()">
					<text class="attr">发布方式<text class="star">*</text></text>
					<view>
						<u-radio-group v-model="waynum">
							<u-radio @change="radioChange" v-for="(item, index) in wayarr" :key="index"
								:name="item.name" :checked="true">{{item.name}}
							</u-radio>
						</u-radio-group>
					</view>
				</view>
				<view class="f_first activityName">
					<text class="attr">发布人</text>
					<view class="activityNameShow" v-if="maxShow==0?true:false">
						<input type="text" v-model="publisher" name="publisher" @input="getActivityNameSize"
							placeholder-class="pcs" placeholder="请输入发布人" :disabled="true" />
						<view class="nameSize"></view>
					</view>
				</view>
				<view class="f_first activityName">
					<text class="attr">联系电话</text>
					<view class="activityNameShow" v-if="maxShow==0?true:false">
						<input type="number" v-model="Telephone" name="Telephone" maxlength="11"
							@input="getActivityNameSize" placeholder-class="pcs" placeholder="请输入联系电话"
							:disabled="true" />
						<view class="nameSize"></view>
					</view>
				</view>
				<!-- 1.活动名称 -->
				<view class="f_first activityName">
					<text class="attr">活动名称<text class="star">*</text></text>
					<view class="activityNameShow" v-if="maxShow==0?true:false">
						<input type="text" v-model="activityName" name="activityName" maxlength="30"
							@input="getActivityNameSize" placeholder-class="pcs" placeholder="请输入活动名称" />
						<!-- <view class="nameSize">{{CurrentSize}}/{{totalSize}}</view> -->
					</view>
				</view>
				<!-- 2.活动类型 -->
				<view class="f_first selectActivity" @click="showActivityTypePic">
					<text class="attr">活动类型<text class="star">*</text></text>
					<u-picker :show="showTypePic" ref="uPicker" :columns="activityTypes" @confirm="confirmType"
						@change="changeType" @cancel="showTypePic = false"></u-picker>
					<view class="">
						{{activityType}}
						<uni-icons type="right" size="12" color="rgba(193, 193, 193, 1)"></uni-icons>
					</view>
				</view>
				<!-- 3.活动开始时间-->
				<view class="f_first" @click="openbottom()">
					<text class="attr">活动时间<text class="star">*</text></text>
					<view class="endTimeP" v-if="maxShow==0?true:false">
						<view class="nameSize">{{startTime}}</view>
					</view>
				</view>
				<!-- 5.截报时间 -->
				<view class="f_first" @click="openbottom('cut')">
					<text class="attr">截报时间<text class="star">*</text></text>
					<view class="endTimeP" v-if="maxShow==0?true:false">
						<view class="nameSize">{{sinUpEndTime}}</view>
					</view>
				</view>
				<!-- 6.报名费用-->
				<view class="f_first" v-if="maxShow==0?true:false">
					<text class="attr">报名费用</text>
					<input type="number" class="uni-input" name="singUpCost" v-model="singUpCost"
						placeholder-class="pcs" @blur="astrictNum()" placeholder="请输入报名费用" />
				</view>
				<!-- 7.活动场地 -->
				<view class="f_first" v-if="maxShow==0?true:false" @click="Region()">
					<text class="attr">所在地区<text class="star">*</text></text>
					<input type="text" v-model="area" placeholder-class="pcs" name="activitySite" placeholder="点击选择地区"
						:disabled="true" />
					<!-- <view class="nameSize">{{area}}</view> -->
				</view>
				<view class="f_first" v-if="maxShow==0?true:false">
					<text class="attr">详细场地<text class="star">*</text></text>
					<input type="text" v-model="activitySite" placeholder-class="pcs" name="activitySite"
						placeholder="请输入详细场地" />
				</view>
				<!-- 8.活动人数限制 -->
				<view class="f_first" v-if="maxShow==0?true:false">
					<text class="attr">人数限制<text class="star">*</text></text>
					<input type="text" disabled="true" v-model="activityPersonNumber" name="activityPersonNumber"
						placeholder-class="pcs" placeholder="由队伍设置自动计算" />
				</view>
				<!-- 9.队伍设置 -->
				<view class="f_first" @click.prevent="settingTeam" v-if="maxShow==0?true:false">
					<text class="attr">队伍设置<text class="star">*</text></text>
					<view class="SettingActivity">
						<uni-icons :type="teamIconType" size="12" color="rgba(206, 206, 206, 1);">
						</uni-icons>
					</view>
				</view>
				<view class="settingTeamBox" v-if="isShowTeamBox">
					<view class="TeamNum">
						<text>设置队伍数量:</text>
						<uni-number-box :disabledInput="true" v-model="teamNum" @change="setTeamNum" />
					</view>
					<view class="TeamNum">
						<text>设置队伍人数:</text>
						<uni-number-box :disabledInput="true" v-model="teamNumber" @change="setTeamNumber" />
					</view>
					<!-- 根据队伍数量动态渲染要设置的队伍名称 -->
					<block v-for="i in teamNum" :key="i">
						<view class="teamName">
							<view class="teamId">
								<!-- 转换为对应的字符 -->
								{{String.fromCharCode(i+65)}}队
							</view>
							<uni-easyinput class="uni-mt-5" trim="all" :value="teams[i].name"
								@input="changeTeamName($event,i)" placeholder="请输队伍名称"></uni-easyinput>
						</view>
					</block>
				</view>

				<!-- 				<view class="f_first" @click="showSingUpPic = true">
					<text class="attr">退费规则</text>
					<view class="endTimeP" v-if="maxShow==0?true:false">
						<input type="text" v-model="refund" placeholder-class="pcs" name="activitySite"
							placeholder="点击选择规则" @click="openbottom('refund')" :disabled="true" />
					</view>
				</view> -->
				<!-- 10.活动简介 -->
				<view class="f_first" @click.prevent="RegistrationInformation" v-if="maxShow==0?true:false">
					<text class="attr">高级设置</text>
					<view class="SettingActivity">
						<uni-icons :type="teamIconType" size="12" color="rgba(206, 206, 206, 1);">
						</uni-icons>
					</view>
				</view>
				<view class="settingTeamBox" v-if="settingShow">
					<view style="display: flex;">
						<text class="RegistrationInformation-text">是否填写报名信息</text>
						<view class="selector">
							<u-radio-group v-model="determinename">
								<u-radio @change="radioChangeInformation" v-for="(item, index) in determinearr "
									:key="index" :name="item.name" :checked="true">{{item.name}}
								</u-radio>
							</u-radio-group>
						</view>
					</view>
					<view class="informationview" v-if="reserveThree==0?false:true">
						<view v-for="(item,index) in InformationBox" :key="index">
							<input class="uni-input"
								:style="item.selected===false?'background-color:#ffffff':'background-color:#ffaa00'"
								confirm-type="search" :placeholder="item.name" @click="Clickbox(index)"
								@input="onInput($event,index)" maxlength="5" :disabled="index<6?false:true" />
						</view>
						<image class="informationview-img" src="/static/TheChartsImgae/加号.png" mode=""
							@click="AddInformation()" v-if="InformationBox.length<15"></image>
					</view>
					<view>
					</view>
				</view>
				<view class=".f_first" id="activityDescription">
					<text class="attr">活动介绍</text>
					<view class="activityProfile" v-if="maxShow==0?true:false">
						<!-- <textarea class="activityText" placeholder="请输入活动简介" v-model="activityProfile"></textarea> -->
						<u--textarea class="activityText" v-model="activityProfile" placeholder="请输入活动简介"
							maxlength="200" count>
						</u--textarea>
					</view>
				</view>
				<!--11.活动图片  -->
				<view class=".f_first_img">
					<text class="attr">活动图片</text>
				</view>
				<view class="getImageBox">
					<u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deleteImage" name="1" multiple
						:width="100" :height="100" :maxCount="1"></u-upload>
				</view>
				<!-- 发布按钮 -->
				<button id="releaseBtn" @click="submit">{{activityId == '' ? '立即发布' : '立即修改'}}</button>

			</view>
			<!-- 模态框 -->
			<view class="">
				<u-modal :show="submitInfo.isShowModal" :title="submitInfo.title" :content='submitInfo.content'
					showCancelButton="true" closeOnClickOverlay="true" @confirm="confirmModal" @cancel="cancleModal">
				</u-modal>
			</view>
			<!-- 发布成功提示 -->
			<uni-popup ref="popup" type="message">
				<uni-popup-message type="success" :message="tipsInfo" :duration="2000"></uni-popup-message>
			</uni-popup>

		</view>
		<uni-popup ref="bottom" type="bottom" :animation="false" :maskClick="true" :before-close="true">
			<view class="bottom">
				<!-- 头部 -->
				<view class="head">
					<!-- 左 -->
					<view class="head-left" @click="determine('cancellation')">
						取消
					</view>
					<!-- 右 -->
					<view class="head-right" @click="determine()">
						确定
					</view>
				</view>
				<view class="Divider"></view>
				<view class="idletime">空闲时间占比</view>
				<view class="Proportion">
					<view class="Proportion-text" v-for="item in user">
						{{item}}
					</view>
				</view>
				<view class="idletime">推荐时间</view>
				<view class="Proportion">
					<view class="recommend-text" :style="button_top?time_background_k:time_background"
						@click="recommend('top')">
						{{"9:00-11:00"}}
					</view>
					<view class="recommend-text" :style="button_middle?time_background_k:time_background"
						@click="recommend('middle')">
						{{"14:00-16:00"}}
					</view>
					<view class="recommend-text" :style="button_bottom?time_background_k:time_background"
						@click="recommend('bottom')">
						{{"18:00-20:00"}}
					</view>
				</view>

				<view class="idletime">开始时间</view>
				<view class="start">
					<uni-calendar ref="calendar" :insert="false" @confirm="confirm" :startDate="max_year" />
					<uni-calendar ref="end" :insert="false" @confirm="end" :startDate="max_year" />
					<view class="week" @click="calendar(1)">
						{{start_day}}{{start_week}}
					</view>
					<picker @change="start_select_block" :value="index" :range="day">
						<view class="day">
							{{start_block}}
						</view>
					</picker>
					<picker @change="start_select_time" :value="index" :range="startTimeaArr">
						<view class="day">
							{{start_time}}
						</view>
					</picker>
					<picker @change="start_select_minute" :value="index" :range="minute">
						<view class="day">
							{{ start_divide}}
						</view>
					</picker>
				</view>
				<view class="idletime">结束时间</view>
				<view class="start">
					<view class="week" @click="calendar()">
						{{end_day}}{{end_week}}
					</view>
					<picker @change="end_select_block" :value="index" :range="day">
						<view class="day">
							{{end_block}}
						</view>
					</picker>
					<picker @change="end_select_time" :value="index" :range="endTimeArr">
						<view class="day">
							{{end_time}}
						</view>
					</picker>
					<picker @change="end_select_minute" :value="index" :range="minute">
						<view class="day">
							{{end_divide}}
						</view>
					</picker>
				</view>
				<view class="blank"></view>
			</view>
		</uni-popup>

		<uni-popup ref="cut" type="bottom" :animation="false" :maskClick="true" :before-close="true">
			<view class="head">
				<!-- 左 -->
				<view class="head-left" @click="Cutoff ('cancellation')">
					取消
				</view>
				<!-- 右 -->
				<view class="head-right" @click="Cutoff()">
					确定
				</view>
			</view>
			<view class="Divider"></view>
			<view class="idletime">截报时间</view>

			<view class="Proportion">
				<view class="Deadline-text" :style="Deadline_top?time_background_k:time_background"
					@click="Deadline('top')">
					{{"提前1个小时"}}
				</view>
				<view class="Deadline-text" :style="Deadline_middle?time_background_k:time_background"
					@click="Deadline('middle')">
					{{"提前半小时"}}
				</view>
				<view class="Deadline-text" :style="Deadline_bottom?time_background_k:time_background"
					@click="Deadline('bottom')">
					{{"提前15分钟"}}
				</view>
			</view>
			<view class="idletime">具体时间</view>
			<view class="start">
				<uni-calendar ref="report" :insert="false" @confirm="report" :startDate="max_year" />
				<view class="report_week" @click="calendar(2)">
					{{report_day}}{{report_week}}
				</view>
				<picker @change="report_select_block" :value="index" :range="day">
					<view class="report_day">
						{{report_block}}
					</view>
				</picker>
				<picker @change="report_select_time" :value="index" :range="reportTimeArr">
					<view class="report_day">
						{{report_time}}
					</view>
				</picker>
				<picker @change="report_select_minute" :value="index" :range="minute">
					<view class="report_day">
						{{report_divide}}
					</view>
				</picker>
			</view>
			<view class="blank"></view>
		</uni-popup>


		<uni-popup ref="refund" type="bottom" :animation="false" :maskClick="true" :before-close="true">
			<view class="head">
				<!-- 左 -->
				<view class="head-left" @click="refund_Cutoff ('cancellation')">
					取消
				</view>
				<!-- 右 -->
				<view class="head-right" @click="refund_Cutoff()">
					确定
				</view>
			</view>
			<view class="idletime">退费规则</view>
			<view class="rule">
				<view class="rule_frame" v-for="(item,index) in refund_arr" :key="index"
					:style="frame_botton==index?'background-color: #cecdf7':'background-color: #ffffff'"
					@click="rule_frame(index)">
					{{item}}
				</view>
			</view>
			<view class="blank"></view>
		</uni-popup>
		<gmy-img-cropper ref="gmyImgCropper" quality="0.5" cropperType="free" fileType="jpg" @getImg="getImg">
		</gmy-img-cropper>
	</view>
</template>

<script>
	import gmyImgCropper from '../../components/gmy-img-cropper/gmy-img-cropper.vue'
	import {
		fail
	} from 'assert';
	import {
		getActivityDetail
	} from '@/api/activity/index.js'
	import {

		reqActivityInfo,
		reqActivityImage,
		reqDeleteActivityImage,
		updateActivityInfo,
		activitytype,
		getUserInfo,
		getidle,
	} from '@/api/mine/mine.js'
	import {
		uploadAvatar
	} from '@/api/system/user.js'
	import {
		data
	} from '../../uni_modules/uview-ui/libs/mixin/mixin';
	export default {

		data() {

			return {
				buttonnot: 0,
				activityIdnot: 0,
				determinename: "否",
				reserveThree: 0,
				InformationBoxarr: [],
				InformationBox: [{
						selected: false,
						name: "姓名"
					},
					{
						selected: false,
						name: "学院"
					}, {
						selected: false,
						name: "年级专业"
					}, {
						selected: false,
						name: "学号"
					}, {
						selected: false,
						name: "手机号码"
					}
				],
				determinearr: [{
					name: "是"
				}, {
					name: "否"
				}],
				settingShow: false,
				checked: 0, //选择变量
				frame_botton: 0, //规则变色,
				refund_arr: ["开始前1小时前退款无手续费，开始前1小时内退款收10%，开始后不允许退款", "开始前1小时前退款无手续费，开始前1小时内退款收10%，开始后不允许退款",
					"开始前1小时前退款无手续费，开始前1小时内退款收10%，开始后不允许退款"
				],
				refund: "活动开始前可申请退款，开始后则不能申请退款", //退费规则
				sinUpEndTime_temporary: "", //临时截止时间
				Deadline_top: false,
				Deadline_middle: true,
				Deadline_bottom: false,
				popup: 0,
				Activitytime: [{
						start_day: "", //开始日期
						start_week: "", //开始星期
						start_block: "", //开始的上午，下午，晚上
						start_time: "", //开始的小时
						start_divide: "", //开始的分钟
					},
					{
						end_day: "", //结束日期
						end_week: "", //结束星期
						end_block: "", //结束的上午，下午，晚上
						end_time: "", //结束的小时
						end_divide: "", //结束的分钟
					},
					{

						report_day: "", //捷报日期
						report_week: "", //捷报星期
						report_block: "", //捷报的上午，下午，晚上
						report_time: "", //捷报的小时
						report_divide: "", //捷报的分钟
					}
				],
				day: ["上午", "下午", "晚上"],
				startTimeaArr: [],
				endTimeArr: [],
				reportTimeArr: [],
				minute: ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13', '14', '15',
					'16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31',
					'32', '33', '34', '35', '36', '37', '38', '39', '40', '41', '42', '43', '44', '45', '46', '47',
					'48', '49', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59'
				],

				// expand: false,
				max_year: new Date().toISOString().slice(0, 10),
				start_year: "",
				start_day: "", //开始日期
				start_week: "", //开始星期
				start_block: "", //开始的上午，下午，晚上
				start_time: "", //开始的小时
				start_divide: "", //开始的分钟
				end_year: "",
				end_day: "", //结束日期
				end_week: "", //结束星期
				end_block: "", //结束的上午，下午，晚上
				end_time: "", //结束的小时
				end_divide: "", //结束的分钟
				report_day: "", //捷报日期
				report_week: "", //捷报星期
				report_block: "", //捷报的上午，下午，晚上
				report_time: "", //捷报的小时
				report_divide: "", //捷报的分钟
				report_year: "",
				button_top: false,
				button_middle: false,
				button_bottom: false,
				time_background_k: "background-color: #cecdf7;",
				time_background: "background-color: #e2e2e2;",
				user: {},
				latitude: "", //经度
				longitude: "", //维度
				waynum: "个人",
				wayshow: false,
				wayarr: [{
					name: "个人"
				}, {
					name: "社团"
				}],
				publisher: "",
				Telephone: "",
				rows: [],
				activityId: '', //记录活动id
				maxShow: 0, //阻止穿透
				event: [], //返回图片合法数组
				photoSrc: '', //给予组件的图片路径
				fileList1: [],
				CurrentSize: 0,
				totalSize: 30,
				area: "", //详细地区
				activityName: "足球", // 活动名称
				activitySite: "", // 活动场地
				activityPersonNumber: "22", // 活动人数限制
				singUpCost: "0", // 	费用
				// 活动类型选择start-----------------------------------------------
				showTypePic: false, //控制是否显示活动选择
				activityType: '运动-球类',
				activityTypes: [
					[],
					[]
				],
				columnData: [],

				// 活动类型选择end-----------------------------------------------
				// 活动时间
				minStartData: Date.now() + 30 * 60 * 1000, //活动开始时间的最小时间戳
				minEndData: Date.now() + 1 * 60 * 60 * 1000, ////活动结束时间的最小时间戳
				minSingUpData: Date.now(), //截至报名最小时间戳
				maxSingUpData: '', //截至报名最大时间戳
				activityStartTime: Number(new Date()),
				activityEndTime: Number(new Date()),
				isShowStartTime: false, //控制是否显示活动开始时间的Pic
				isShowEndTime: false, //控制是否显示活动结束时间的Pic
				startTime: '选择开始时间', //传至服务器的时间(文字只是占位)
				endTime: '选择结束时间', // 	截至报名时间
				showSingUpPic: false, //控制是否显示截至报名时间的Pic
				selectEndTime: Number(new Date()),
				sinUpEndTime: "选择截报时间", //截至报名时间
				activityProfile: "这是默认简介", // 活动简介
				// 活动图片地址(用户不上传图片时候添加这张默认图片)
				activityImageUrl: "/activity/2023/04/24/54395b91-f8c1-4343-8573-4fa987836d64_20230424094309A001.png",
				// 队伍设置的图标
				teamIconType: "bottom",
				isShowTeamBox: false, //控制是否显示队伍设置的盒子
				num: 0, // 控制队伍设置框显示与隐藏来回切换
				teamNum: 2, // 队伍数量(默认为两个队伍)
				teamNumber: 11, //每个队伍人数
				teamName: '', // 队伍名称
				teams: [{
					name: "红队",
					numbers: 11
				}, {
					name: "黄队",
					numbers: 11
				}], //所有队伍的名称
				tipsInfo: "",
				submitInfo: { //模态框
					isShowModal: false,
					title: "提示",
					content: "请完善内容"
				},
			}
		},
		methods: {

			onInput(e, index) {

				this.InformationBox[index].name = e.detail.value
			},
			radioChangeInformation(e) {
				if (e == "是") {
					this.reserveThree = 1
				} else {
					this.reserveThree = 0
				}
			},
			AddInformation() {
				let data = {
					selected: false,
					name: "请输入"
				}
				this.InformationBox.push(data)

			},
			Clickbox(index) {
				if (this.InformationBox[index].name != "请输入" || this.InformationBox[index].name == "") {
					if (this.InformationBox[index].selected == false) {
						let data = {
							"name": this.InformationBox[index].name
						}
						this.InformationBox[index].selected = true
						this.InformationBoxarr.push(data)
					} else {
						let daba = 0
						this.InformationBox[index].selected = false
						for (let i = 0; this.InformationBoxarr.length < i; i++) {
							if (this.InformationBoxarr[i].name == this.InformationBox[index].name) {
								daba = i
							}
						}
						this.InformationBoxarr.splice(daba, 1)
					}
				}

				console.log(this.InformationBoxarr)
			},
			RegistrationInformation() {
				if (this.settingShow == false) {
					this.settingShow = true
				} else {
					this.settingShow = false
				}

			},
			get_idle(data) {
				getidle(data).then(res => {
					this.user = res
				})
			},
			get_day(time) {
				if (time < 12) {
					return "上午"
				} else if (12 < time < 18) {
					return "下午"
				} else {
					return "晚上"
				}
			},
			Timeorrection(time) {
				if (time > 23) {
					let nub = time - 24
					return "0" + nub
				} else {
					return time
				}
			},
			Timezero(tiem, index) {
				console.log(parseInt(tiem), index)
				let nub = parseInt(tiem) + index
				if (nub < 10) {
					return "0" + nub
				} else {
					return nub
				}

			},
			gettime() {
				var date = new Date(),
					year = date.getFullYear(),
					month = date.getMonth() + 1,
					day = date.getDate(),
					hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(),
					minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(),
					second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
				month >= 1 && month <= 9 ? (month = "0" + month) : "";
				day >= 0 && day <= 9 ? (day = "0" + day) : "";
				let week = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
				this.time = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second;
				this.start_block = this.get_day(hour)
				this.start_day = month + "月" + day + "日"
				this.start_divide = this.Timezero(minute, 0) + "分"
				this.start_time = this.Timeorrection(this.Timezero(hour, 1)) + "时"
				this.start_week = "(" + week[date.getDay()] + ")"
				this.end_block = this.get_day(this.Timeorrection(this.Timezero(hour, 2)))
				this.end_day = month + "月" + day + "日"
				this.end_divide = this.Timezero(minute, 0) + "分"
				this.end_time = this.Timeorrection(this.Timezero(hour, 3)) + "时"
				this.end_week = "(" + week[date.getDay()] + ")"
				this.report_block = this.get_day(this.Timeorrection(this.Timezero(hour, 2)))
				this.report_day = month + "月" + day + "日"
				this.report_divide = this.Timezero(minute, 0) + "分"
				this.report_time = this.Timeorrection(this.Timezero(hour, 3)) + "时"
				this.report_week = "(" + week[date.getDay()] + ")"
				this.startTime = (this.Timeorrection(this.Timezero(hour, 1))) + ":" + this.Timezero(minute, 0) + "-" + (
					this.Timeorrection(this.Timezero(hour, 3))) + ":" + minute
				this.sinUpEndTime = (this.Timeorrection(this.Timezero(hour, 3))) + ":" + this.Timezero(minute, 0)
				this.start_year = year + '-' + month + '-' + day
				this.end_year = year + '-' + month + '-' + day
				this.report_year = year + '-' + month + '-' + day
				this.starttime(this.start_block)
				this.endtime(this.end_block)
				this.reporttime(this.report_block)
				let leisureTime = year + '-' + month + '-' + day
                let bat={
                "leIsureTime":year + '-' + month + '-' + day
                }
				this.get_idle( bat)
			},
			radioChange: function(e) {
				// console.log(e)
				// this.waynum = e
			},
			//截止选择分钟
			report_select_minute(e) {
				this.report_divide = this.minute[e.detail.value] + "分"
			},
			//截止选择小时
			report_select_time(e) {

				if (this.report_block == "") {
					this.submitInfo.content = "请先输入时间区段"
					this.submitInfo.isShowModal = true //提示弹框
				} else {
					this.report_time = this.reportTimeArr[e.detail.value] + "时"
				}
			},
			reporttime(day) {
				if (day == "上午")

				{
					console.log("上午")
					this.reportTimeArr = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"]
				} else if (day == "下午") {
					this.reportTimeArr = ["12", "13", "14", "15", "16", "17"]
				} else {
					this.reportTimeArr = ["18", "19", "20", "21", "22", "23"]
				}
			},
			//截止选择小时
			report_select_block(e) {
				this.report_block = this.day[e.detail.value]
				this.reporttime(this.day[e.detail.value])
			},
			//截止选择几月几号
			report(e) {
				this.report_year = e.fulldate
				this.report_day = e.month + "月" + e.date + "号"
				this.report_week = "(" + e.lunar.ncWeek + ")"
			},
			//获取手机号、昵称
			information() {
				this.publisher = uni.getStorageSync("userinfo").name
				this.Telephone = uni.getStorageSync("userinfo").usernumber
			},
			//确定、取消规则
			refund_Cutoff(e) {
				if (e == "cancellation") {
					this.$refs.refund.close()
				} else {
					this.refund = this.refund_arr[this.frame_botton]
					this.$refs.refund.close()
				}

			},
			//规则变色
			rule_frame(e) {
				this.frame_botton = e
			},
			//确定、取消截止时间
			Cutoff(e) {
				if (e == "cancellation") {
					this.report_block = this.Activitytime[2].report_block
					this.report_day = this.Activitytime[2].report_day
					this.report_divide = this.Activitytime[2].report_divide
					this.report_time = this.Activitytime[2].report_time
					this.report_week = this.Activitytime[2].report_week
					this.$refs.cut.close()
				} else {
					if (this.end_time == "") {
						console.log("hhhh")
						this.submitInfo.content = "请先输入活动时间"
						this.submitInfo.isShowModal = true //提示弹框
					} else {
						if (new Date(this.report_year) > new Date(this.end_year)) {
							this.submitInfo.content = "截止日期不能大于结束日期"
							this.submitInfo.isShowModal = true //提示弹框
						} else if (new Date(this.report_year) == new Date(this.end_year)) {
							if (this.report_time > this.end_time) {
								this.submitInfo.content = "截止小时不能大于结束小时"
								this.submitInfo.isShowModal = true //提示弹框
							} else if (this.report_minute > this.end_minute) {
								this.submitInfo.content = "截止分钟不能大于结束分钟"
								this.submitInfo.isShowModal = true //提示弹框
							}
						} else {
							this.Activitytime[2].report_block = this.report_block
							this.Activitytime[2].report_day = this.report_day
							this.Activitytime[2].report_divide = this.report_divide
							this.Activitytime[2].report_time = this.report_time
							this.Activitytime[2].report_week = this.report_week
							this.sinUpEndTime = this.report_time.substring(0,
								this.report_time.indexOf("时")) + ":" + this.report_divide.substring(0,
								this.report_divide.indexOf("分"))
							this.$refs.cut.close()
						}
					}


				}


			},
			//推荐时间变色选择
			Deadline(e) {
				if (this.end_time == "") {
					this.submitInfo.content = "请先输入活动时间"
					this.submitInfo.isShowModal = true //提示弹框
				} else {
					if (e == 'top') {
						if (this.Deadline_top === false) {
							this.Deadline_top = true
							this.Deadline_bottom = false
							this.Deadline_middle = false
							var hour = parseInt(this.end_time.substring(0,
								this.end_time.indexOf("时"))) - 1
							var minute = parseInt(this.end_divide.substring(0, this.end_divide.indexOf(
								"分")))
							if (0 < minute && minute < 10 || minute == 0) {
								minute = "0" + minute
								this.report_day = this.end_day
								this.report_week = this.end_week
								this.report_block = this.end_block
								this.report_time = hour + "时"
								this.report_divide = minute + "分"
							} else {
								this.report_day = this.end_day
								this.report_week = this.end_week
								this.report_block = this.end_block
								this.report_time = hour + "时"
								this.report_divide = minute + "分"
							}
						}
					}
					if (e == 'middle') {
						if (this.Deadline_middle === false) {
							this.Deadline_middle = true
							this.Deadline_bottom = false
							this.Deadline_top = false
							var hour = parseInt(this.end_time.substring(0,
								this.end_time.indexOf("时")))
							var minute = parseInt(this.end_divide.substring(0, this.end_divide.indexOf(
								"分"))) - 30
							if (minute > 0 || minute == 0) {
								if (0 < minute && minute < 10 || minute == 0) {
									minute = "0" + minute
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								} else {
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								}

							} else {
								minute = 60 + minute
								hour = hour - 1
								if (0 < minute && minute < 10 || minute == 0) {
									console.log(minute)
									minute = "0" + minute
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								} else {
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								}
							}

						}
					}
					if (e == 'bottom') {
						if (this.Deadline_bottom === false) {
							this.Deadline_bottom = true
							this.Deadline_middle = false
							this.Deadline_top = false
							var hour = parseInt(this.end_time.substring(0,
								this.end_time.indexOf("时")))
							var minute = parseInt(this.end_divide.substring(0, this.end_divide.indexOf(
								"分"))) - 15
							if (minute > 0 || minute == 0) {
								if (0 < minute && minute < 10 || minute == 0) {
									minute = "0" + minute
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								} else {
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								}
							} else {
								minute = 60 + minute
								hour = hour - 1
								if (0 < minute && minute < 10 || minute == 0) {
									minute = "0" + minute
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								} else {
									this.report_day = this.end_day
									this.report_week = this.end_week
									this.report_block = this.end_block
									this.report_time = hour + "时"
									this.report_divide = minute + "分"
								}
							}
						}
					}
				}
			},
			//开启截止时间
			cut() {
				this.$refs.cut.open()
			},
			//确定、取消开始时间
			determine(e) {
				if (e == "cancellation") {
					this.start_block = this.Activitytime[0].start_block
					this.start_day = this.Activitytime[0].start_day
					this.start_divide = this.Activitytime[0].start_divide
					this.start_time = this.Activitytime[0].start_time
					this.start_week = this.Activitytime[0].start_week
					this.end_block = this.Activitytime[1].end_block
					this.end_day = this.Activitytime[1].end_day
					this.end_divide = this.Activitytime[1].end_divide
					this.end_time = this.Activitytime[1].end_time
					this.end_week = this.Activitytime[1].end_week

					this.$refs.bottom.close()
				} else {
					if (this.start_year == "") {
						this.submitInfo.content = "请输入开始时间"
						this.submitInfo.isShowModal = true //提示弹框
					} else
					if (this.end_day == "") {
						this.submitInfo.content = "请输入结束时间"
						this.submitInfo.isShowModal = true //提示弹框
					} else
					if (this.start_block == "") {
						this.submitInfo.content = "请输入开始时间段"
						this.submitInfo.isShowModal = true //提示弹框
					} else if (this.end_block == "") {
						this.submitInfo.content = "请输入结束时间段"
						this.submitInfo.isShowModal = true //提示弹框
					} else if (this.start_time == "" || this.end_time == "") {
						this.submitInfo.content = "小时不能为空"
						this.submitInfo.isShowModal = true //提示弹框
					} else if (this.start_year > this.end_year) {
						this.submitInfo.content = "结束日期不要小于开始日期"
						this.submitInfo.isShowModal = true //提示弹框
					} else if (this.start_year == (new Date().getFullYear() + "-" + new Date().getMonth() + "-" +
							new Date().getDate())) {

						if (this.start_time.substring(0,
								this.start_time.indexOf("时")) < new Date().getHours()) {
							this.submitInfo.content = "开始小时不能早于现在"
							this.submitInfo.isShowModal = true //提示弹框
						}
					} else if (this.start_year === this.end_year && this.start_time.substring(0,
							this.start_time.indexOf("时")) > this.end_time.substring(0,
							this.end_time.indexOf("时"))) {

						this.submitInfo.content = "结束时间不能早于开始时间"
						this.submitInfo.isShowModal = true //提示弹框
					} else if (this.start_divide == "" || this.end_divide == "") {

						this.submitInfo.content = "分钟不能为空"
						this.submitInfo.isShowModal = true //提示弹框
					} else
					if (this.start_time.substring(0,
							this.start_time.indexOf("时")) == this.end_time.substring(0,
							this.end_time.indexOf("时")) && this.start_divide.substring(0,
							this.start_divide.indexOf("分")) > this.end_divide.substring(0,
							this.end_divide.indexOf("分"))) {

						this.submitInfo.content = "结束分钟不能早于开始分钟"
						this.submitInfo.isShowModal = true //提示弹框


					} else {
						this.Activitytime[0].start_block = this.start_block
						this.Activitytime[0].start_day = this.start_day
						this.Activitytime[0].start_divide = this.start_divide
						this.Activitytime[0].start_time = this.start_time
						this.Activitytime[0].start_week = this.start_week
						this.Activitytime[1].end_block = this.end_block
						this.Activitytime[1].end_day = this.end_day
						this.Activitytime[1].end_divide = this.end_divide
						this.Activitytime[1].end_time = this.end_time
						this.Activitytime[1].end_week = this.end_week
						this.report_block = this.end_block
						this.report_day = this.end_day
						this.report_divide = this.end_divide
						this.report_time = this.end_time
						this.report_week = this.end_week
						this.Activitytime[2].report_block = this.report_block
						this.Activitytime[2].report_day = this.report_day
						this.Activitytime[2].report_divide = this.report_divide
						this.Activitytime[2].report_time = this.report_time
						this.Activitytime[2].report_week = this.report_week
						this.startTime = this.start_time.substring(0, this.start_time.indexOf("时")) + ":" + this
							.start_divide.substring(0, this.start_divide.indexOf("分")) + "-" + this.end_time.substring(0,
								this.end_time.indexOf("时")) + ":" + this.end_divide.substring(0, this.end_divide.indexOf(
								"分"))
						this.sinUpEndTime = this.end_time.substring(0,
							this.end_time.indexOf("时")) + ":" + this.end_divide.substring(0, this.end_divide.indexOf(
							"分"))
						this.$refs.bottom.close()
					}
				}
			},
			//推荐开始时间
			recommend(e) {
				var that = this
				if (e == 'top') {
					if (this.button_top === false) {
						that.button_top = true
						this.button_bottom = false
						this.button_middle = false
						this.start_block = "上午"
						this.end_block = "上午"
						this.start_time = "09时" //开始的小时
						this.start_divide = "00分" //开始的分钟
						this.end_time = "11时" //结束的小时
						this.end_divide = "00分" //结束的分钟
						this.starttime(this.start_block)
						this.endtime(this.end_block)
						// this.reporttime(this.report_block)
					} else {
						console.log("hahaha")
						this.button_top = false
						this.start_time = "0时" //开始的小时
						this.start_divide = "0分" //开始的分钟
						this.end_time = "0时" //结束的小时
						this.end_divide = "0分" //结束的分钟
					}
				}
				if (e == 'middle') {
					console.log("hahaha")
					if (this.button_middle === false) {
						this.button_middle = true
						this.button_bottom = false
						this.button_top = false
						this.start_block = "下午"
						this.end_block = "下午"
						this.start_time = "14时" //开始的小时
						this.start_divide = "00分" //开始的分钟
						this.end_time = "16时" //结束的小时
						this.end_divide = "00分" //结束的分钟
						this.starttime(this.start_block)
						this.endtime(this.end_block)
					} else {
						this.button_middle = false
						this.start_time = "00时" //开始的小时
						this.start_divide = "00分" //开始的分钟
						this.end_time = "00时" //结束的小时
						this.end_divide = "00分" //结束的分钟
						this.starttime(this.start_block)
						this.endtime(this.end_block)
					}
				}
				if (e == 'bottom') {
					if (this.button_bottom === false) {
						this.button_bottom = true
						this.button_middle = false
						this.button_top = false
						this.start_block = "晚上"
						this.end_block = "晚上"
						this.start_time = "18时" //开始的小时
						this.start_divide = "00分" //开始的分钟
						this.end_time = "20时" //结束的小时
						this.end_divide = "00分" //结束的分钟
						this.starttime(this.start_block)
						this.endtime(this.end_block)
					} else {
						this.button_bottom = false
						this.start_time = "00时" //开始的小时
						this.start_divide = "00分" //开始的分钟
						this.end_time = "00时" //结束的小时
						this.end_divide = "00分" //结束的分钟
					}
				}
			},
			endtime(day) {
				if (day == "上午")

				{
					console.log("上午")
					this.endTimeArr = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"]
				} else if (day == "下午") {
					this.endTimeArr = ["12", "13", "14", "15", "16", "17"]
				} else {
					this.endTimeArr = ["18", "19", "20", "21", "22", "23"]
				}
			},
			starttime(day) {
				if (day == "上午")

				{
					console.log("上午")
					this.startTimeaArr = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"]
				} else if (day == "下午") {
					this.startTimeaArr = ["12", "13", "14", "15", "16", "17"]
				} else {
					this.startTimeaArr = ["18", "19", "20", "21", "22", "23"]
				}
			},
			//选择结束白天
			end_select_block: function(e) {
				this.end_block = this.day[e.detail.value]
				this.endtime(this.day[e.detail.value])
			},
			//选择开始白天
			start_select_block: function(e) {
				this.start_block = this.day[e.detail.value]
				this.starttime(this.day[e.detail.value])
			},
			//选择开始分钟
			start_select_minute: function(e) {
				this.start_divide = this.minute[e.detail.value] + "分"
			},
			//选择结束分钟
			end_select_minute: function(e) {
				this.end_divide = this.minute[e.detail.value] + "分"

			},
			//选择开始小时
			start_select_time: function(e) {
				console.log(e)
				if (this.start_block == "") {
					this.submitInfo.content = "请先输入时间区段"
					this.submitInfo.isShowModal = true //提示弹框
				} else {
					this.start_time = this.startTimeaArr[e.detail.value] + "时"
				}

			},
			//选择结束小时
			end_select_time: function(e) {

				if (this.end_block == "") {
					this.submitInfo.content = "请先输入时间区段"
					this.submitInfo.isShowModal = true //提示弹框
				} else {
					this.end_time = this.endTimeArr[e.detail.value] + "时"
				}
			},
			// obtain() {
			// 	for (let i = 0; i < 24; i++) {
			// 		this.time.push(i)
			// 	}
			// 	for (let i = 0; i < 60; i++) {
			// 		this.minute.push(i)
			// 	}

			// },
			//开启各个日历
			calendar(e) {
				console.log(e)
				if (e === 1) {
					this.$refs.calendar.open()
				} else if (e == 2) {
					this.$refs.report.open()
				} else {
					this.$refs.end.open()
				}
			},
			//选择结束时间
			end(e) {
				this.end_year = e.fulldate
				this.end_day = e.month + "月" + e.date + "号"
				this.end_week = "(" + e.lunar.ncWeek + ")"
				console.log(e);
				this.report_year = e.fulldate
			},
			//选择开始时间
			confirm(e) {
				if (this.start_day == "") {
					this.report_year = e.fulldate
					this.start_year = e.fulldate
					this.start_day = e.month + "月" + e.date + "号"
					this.end_day = e.month + "月" + e.date + "号"
					this.start_week = "(" + e.lunar.ncWeek + ")"
					this.end_week = "(" + e.lunar.ncWeek + ")"
					const date = new Date();
					var getHours = date.getHours()
					var getMinutes = date.getMinutes()
					if (getHours + 1 < 10) {
						getHours = "0" + getHours
					}
					if (getMinutes < 10) {
						getMinutes = "0" + getMinutes
					}
					this.start_time = getHours + 1 + "时"
					this.end_time = getHours + 2 + "时"
					this.start_divide = getMinutes + "分"
					this.end_divide = getMinutes + "分"
					if (date.getHours() + 1 < 13) {
						this.start_block = "上午"
					} else if (date.getHours() + 1 < 19 && date.getHours() + 1 > 12) {
						this.start_block = "下午"
					} else {
						this.start_block = "晚上"
					}
					if (date.getHours() + 2 < 13) {
						this.end_block = "上午"
					} else if (date.getHours() + 2 < 19 && date.getHours() + 2 > 12) {
						this.end_block = "下午"
					} else {
						this.end_block = "晚上"
					}
					this.end_year = e.fulldate
				} else {
					this.start_year = e.fulldate
					this.start_day = e.month + "月" + e.date + "号"
					this.start_week = "(" + e.lunar.ncWeek + ")"
				}
			},
			//开启各个下弹窗
			openbottom(e) {
				if (e == 'refund') {
					this.$refs.refund.open()
				} else if (e == "cut") {
					this.$refs.cut.open()
				} else {
					this.$refs.bottom.open()
				}
				// 通过组件定义的ref调用uni-popup方法 ,如果传入参数 ，type 属性将失效 ，仅支持 ['top','left','bottom','right','center']

			},
			//选择地图
			handerChooseLocation(latitude, longitude) {
				uni.chooseLocation({

					latitude: latitude,
					longitude: longitude,
					success: (res) => {
						console.log('wx.chooseLocation res=', res)
						uni.setStorageSync('currentLocation', res)
						this.area = res.address
						this.latitude = res.latitude
						this.longitude = res.longitude
					},
					fail: function(err) {
						console.log('取消按钮', err)
					}
				})
			},
			//开启定位
			handleOpenSetting() {

				uni.authorize({
					scope: 'scope.userLocation',
					success() {
						// 授权成功后 就可以执行 需要权限的  操作函数了
						//在这里调用uni.saveImageToPhotosAlbum(OBJECT)
						// 使用已授权的功能
						uni.showToast({
							title: '可以使用系统定位权限',
							icon: 'success'
						});
					},
					fail() {
						/*
						 第一次拒绝授权后必须在 uni.authorize的fail中使用
						 uni.openSetting 才能进入设置界面打开授权按钮
						 */
						uni.showToast({
							title: '拒绝授权',
							icon: 'none'
						});
						// 这里必须经过一个confirm 不然也会出现问题（啥问题我也不知道）
						uni.showModal({
							title: '是否重新授权定位功能',
							success(res) {
								uni.openSetting({
									success: (res) => {
										console.log('定位 openSetting', res)
										if (res.authSetting["scope.userLocation"]) {
											this.handerChooseLocation()
										}
									},

								})

							}
						});
					}
				});

			},

			Region() {
				this.buttonnot = 1
				uni.getSetting({
					success: (res) => {
						if (res.authSetting['scope.userLocation']) {
							uni.getLocation({
								type: 'gcj02',
								success: (res) => {
									console.log(res)
									this.handerChooseLocation(res.latitude, res.longitude)
								},
							});

						} else if (res.authSetting['scope.userLocation'] === undefined) {

							this.handleOpenSetting()
						} else {
							/* 用户拒绝了授权后走这里 */
							console.log('拒绝了授权 false')
							this.handleOpenSetting()
						}
					},
				})

			},
			wayfales(e) {
				this.waynum = e.value[0]
				this.wayshow = false
			},
			wayiput() {
				this.wayshow = true
			},
			way(e) {
				const {
					columnIndex,
					value,
					values, // values为当前变化列的数组内容
					index,
					// 微信小程序无法将picker实例传出来，只能通过ref操作
					picker = this.$refs.uPicker
				} = e

				// 当第一列值发生变化时，变化第二列(后一列)对应的选项
				if (columnIndex === 0) {
					// picker为选择器this实例，变化第二列对应的选项
					picker.setColumnValues(1, this.columnData[index])
				}
			},
			activitytypepost() {
				var data = {}
				activitytype(data).then((res) => {
					console.log(res)
					let activityTypes = [];
					let columnData = [];
					for (var i = 1; i < res.rows.length; i++) {
						activityTypes.push(res.rows[i].type.typeName)
						var types = []
						if (res.rows[i].spType != null) {
							for (var j = 0; j < res.rows[i].spType.length; j++) {
								types.push(res.rows[i].spType[j].spTypeName)
							}
						}
						columnData[i - 1] = types
					}
					this.rows = res.rows
					this.columnData = columnData
					this.activityTypes[0] = activityTypes
					this.activityTypes[1] = columnData[0]
				})
			},
			async getImg(e) {
				this.buttonnot =1
				let event = this.event
				let lists = [].concat(event.file)
				lists[0].url = e
				event.file[0].thumb = e
				let fileListLen = this[`fileList${event.name}`].length
				lists.map((item) => {
					this[`fileList${event.name}`].push({
						...item,
						status: 'uploading',
						message: '上传中'
					})
				})

				for (let i = 0; i < lists.length; i++) {
					const result = await this.uploadFilePromise(lists[0].url)
					let item = this[`fileList${event.name}`][fileListLen]
					this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
						status: 'success',
						message: '',
						url: result
					}))
					fileListLen++
				}
				this.maxShow = 0
			},
			getActivityNameSize() { //获取活动名称的长度
				this.CurrentSize = this.activityName.length
			},
			//选择活动类型start----------------------------
			showActivityTypePic() { //点击活动类型弹出活动类型选择器
				this.showTypePic = true
			},
			changeType(e) {
				const {
					columnIndex,
					value,
					values, // values为当前变化列的数组内容
					index,
					// 微信小程序无法将picker实例传出来，只能通过ref操作
					picker = this.$refs.uPicker
				} = e

				// 当第一列值发生变化时，变化第二列(后一列)对应的选项
				if (columnIndex === 0) {
					// picker为选择器this实例，变化第二列对应的选项
					picker.setColumnValues(1, this.columnData[index])
				}
			},
			// 回调参数为包含columnIndex、value、values
			confirmType(e) { //活动类型选择器点击确定
				if (e.value[0] == "学习" || e.value[0] == "其他") {
					this.activityType = e.value[0]
					this.showTypePic = false
				} else {
					this.activityType = e.value[0] + "-" + e.value[1]
					this.showTypePic = false
				}

			},
			cancelType(e) { //活动类型选择器点击取消
				this.showTypePic = false
			},
			//选择活动类型end--------------------------------------------------
			// 数字限制
			astrictNum() {
				if (this.singUpCost.match(/^[0-9]*$/)) {} else {
					this.singUpCost = ""
					this.submitInfo.isShowModal = true
					this.submitInfo.content = "请填写合法费用"
				}
			},
			showActivityStartP() { //控制是否显示活动开始时间的pic
				this.isShowStartTime = true;
			},
			// 活动时间日历确定之后触发
			async confirmStartT(e) {
				const timeFormat = uni.$u.timeFormat;
				let startTime = await timeFormat(e.value, 'yyyy-mm-dd hh:MM');
				this.startTime = startTime;
				this.isShowStartTime = false
				this.minEndData = e.value + 30 * 60 * 1000 //设置活动结束时间的最小选择日期(必须大于活动开始时间)
				this.maxSingUpData = e.value - 30 * 60 * 1000 //设置活动截至报名时间的最大选择日期(必须小于活动开始时间)

			},
			cancelStartT() { //取消活动开始时间Pic
				this.isShowStartTime = false
			},
			showActivityEndP() { //显示活动结束时间的Pic
				this.isShowEndTime = true
			},
			async confirmActivityEndT(e) { //

				const timeFormat = uni.$u.timeFormat;
				let endTime = await timeFormat(e.value, 'yyyy-mm-dd hh:MM');
				this.endTime = endTime;
				this.isShowEndTime = false
			},
			cancelActivityEndT() {
				this.isShowEndTime = false
			},
			// 选择图片并上传至服务器start-----------------------------------------------------------------------------------------------------
			// 添加图片
			async afterRead(event) {
				this.buttonnot =1
				console.log(this.buttonnot)
				this.event = event
				let photoSrc = event.file[0].thumb
				console.log(photoSrc, '我的');
				this.$refs.gmyImgCropper.getimg(photoSrc);
				this.maxShow = 1
			},
			//上传图片至服务器

			uploadFilePromise(url) {

				const token = uni.getStorageSync('token')
				console.log(url)
				uploadAvatar(url).then((res) => {
					if (res.code === 200) {
						this.activityImageUrl = res.data[0]
						this.tipsInfo = "图片上传成功"
						this.$refs.popup.open() //图片删除成功提示消息
					}


				})

			},
			deleteImage(event) {

				this[`fileList${event.name}`].splice(event.index, 1)
				reqDeleteActivityImage(this.activityImageUrl).then((res) => {

					this.tipsInfo = "图片删除成功"
					this.$refs.popup.open() //图片删除成功提示消息
				})
			},
			//选择图片并上传至服务器end-----------------------------------------------------------------------------------------------------

			// 显示设置队伍Box
			settingTeam() {
				//切换显示
				if (this.num === 0) {
					this.teamIconType = "top"
					this.isShowTeamBox = true
					this.num += 1
				} else {
					this.teamIconType = "bottom"
					this.isShowTeamBox = false
					this.num = 0
				}
			},
			// 设置每队人数触发的函数
			/*
			 活动人数限制是根据队伍数量和每对人数决定的
			 当对队伍数量和每对人数发生变化时都会改变活动限制的人数
			 所以:在队伍数量和每对人数的函数触发时都要重新计算活动限制人数
			 */
			setTeamNumber(e) {
				// e:当前每对人数
				this.activityPersonNumber = this.teamNum * e; //活动人数限制=每对人数*当前队伍数
				this.teamNumber = e //每队人数
				this.teams[0].numbers = e
				this.teams[1].numbers = e
			},
			//设置队伍数量触发的函数
			setTeamNum(e) {
				this.activityPersonNumber = this.teamNumber * e; //活动人数限制=当前队伍数*每对人数
				this.teamNum = e;
				this.teams.length = this.teamNum
			},
			//改变队伍的数量
			changeTeamName(e, id) {
				console.log(e, id);
				let teamObj = {
					name: '',
					numbers: this.teamNumber
				}
				this.teamName = e
				teamObj.name = this.teamName
				this.teams[id] = teamObj
				// thi.teams[id].numbers=this.teamNumber
				this.teamName = ""
			},
			// u-datetime-picker点击确定按钮
			async confirmEndT(e) {
				// 选择器隐藏
				this.showSingUpPic = false;
				// 格式化时间
				const timeFormat = uni.$u.timeFormat;
				let selectEndTime = await timeFormat(e.value, 'yyyy-mm-dd hh:MM');
				this.selectEndTime = selectEndTime;
				// 要展示的时间
				this.sinUpEndTime = selectEndTime;
			},
			// u-datetime-picker点击取消按钮
			cancelEndT() {
				this.showSingUpPic = false;
			},
			// 模态框
			confirmModal() {
				this.submitInfo.isShowModal = false
			},
			cancleModal() {
				this.submitInfo.isShowModal = false
			},
			// 提交表单
			submit() {
				let rows = this.rows
				var activityTypeid = 0
				var activityTypeSpid = 0
				if (this.activityType == "学习" || this.activityType == "其他") {
					var types = this.activityType
				} else {
					var types = this.activityType.match(/-(\S*)/)[1]
				}

				console.log(types)
				for (var i = 0; i < rows.length; i++) {
					if (rows[i].spType != null) {
						for (var j = 0; j < rows[i].spType.length; j++) {
							if (rows[i].spType[j].spTypeName === types) {
								console.log(rows)
								activityTypeid = rows[i].spType[j].spTypeId
								activityTypeSpid = rows[i].type.typeId
							}
						}
					}

				}
				let InformationBoxture = false
				for (let i = 0; i < this.InformationBoxarr.length; i++) {
					for (let j = i + 1; j < this.InformationBoxarr.length; j++) {
						if (this.InformationBoxarr[i].name == this.InformationBoxarr[j].name) {
							InformationBoxture = true

						}
					}

				}
				var date = new Date(),
					year = date.getFullYear(),
					month = date.getMonth() + 1,
					day = date.getDate(),
					hour = date.getHours() < 10 ? "0" + date.getHours() : date.getHours(),
					minute = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes(),
					second = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
				let time = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + second;
				console.log(time)
				// 判断是否有选项为空为空则弹框
				if (InformationBoxture) {
					this.submitInfo.content = "高级设置中有重复的报名信息"
					this.submitInfo.isShowModal = true
				} else
				if (this.activityName === "") {
					this.submitInfo.content = "请输入活动名称"
					this.submitInfo.isShowModal = true
				} else if (this.activityType === '请选择活动类型') {
					this.submitInfo.content = "请选择活动类型"
					this.submitInfo.isShowModal = true
				} else if (this.startTime === '选择开始时间') {
					this.submitInfo.content = "请选择活动时间"
					this.submitInfo.isShowModal = true
				} else if (this.start_year + " " + this.start_time.substring(0, this.start_time.indexOf(
						"时")) + ":" + this
					.start_divide.substring(0, this.start_divide.indexOf("分")) + ":00" > time) {
					this.submitInfo.content = "活动开始时间不能小于现在"
					this.submitInfo.isShowModal = true
				} else if (this.sinUpEndTime === '选择截报时间') {
					this.submitInfo.content = "请选择活动截报名时间"
					this.submitInfo.isShowModal = true
				} else if (this.singUpCost === '') {
					this.submitInfo.content = "请输入报名费用"
					this.submitInfo.isShowModal = true
				} else if (this.area === '') {
					this.submitInfo.content = "请输入详细地址"
					this.submitInfo.isShowModal = true
				} else if (this.activitySite === '') {
					this.submitInfo.content = "请输入活动场地"
					this.submitInfo.isShowModal = true
				} else if (this.teamNumber === 0) {
					this.submitInfo.content = "请设置队伍人数"
					this.submitInfo.isShowModal = true
				} else if (this.teams.length != this.teamNum) {
					this.submitInfo.content = "请输入队伍名称"
					this.submitInfo.isShowModal = true
				} else {
					let activityObj = {
						"deadlineTime": this.report_year + " " + this.sinUpEndTime + ":00",
						"endTime": this.end_year + " " + this.end_time.substring(0,
							this.end_time.indexOf("时")) + ":" + this.end_divide.substring(0, this.end_divide
							.indexOf(
								"分")) + ":00",
						"id": activityTypeSpid,
						"images": this.activityImageUrl,
						"introduce": this.activityProfile,
						"latitude": JSON.stringify(this.latitude),
						"list": this.teams,
						"location": this.area + "-" + this.activitySite,
						"longitude": JSON.stringify(this.longitude),
						"name": this.activityName,
						"activityStatus": "0",
						"numbers": parseInt(this.activityPersonNumber),
						"phone": this.Telephone,
						"price": parseInt(this.singUpCost),
						"releaseName": this.publisher,
						"reserveOne": 0,
						"reserveThree": this.reserveThree,
						"reserveTwo": "",
						"startTime": this.start_year + " " + this.start_time.substring(0, this.start_time.indexOf(
								"时")) + ":" + this
							.start_divide.substring(0, this.start_divide.indexOf("分")) + ":00",
						"type": activityTypeid,
						"userId": uni.getStorageSync('userinfo').userid,
						"userType": this.waynum,
						"fieldList": this.InformationBoxarr,
						"customRules": this.refund
						// "activityDesignation": this.activityName,
						// "activityTypeid": activityTypeid,
						// "activityStarttime": this.startTime + ':00',
						// "activityEndtime": this.endTime + ':00',
						// "activityDeadlinetime": this.sinUpEndTime + ':00',
						// "activityCost": this.singUpCost,
						// "activityPlace": this.activitySite,
						// "numberMax": this.activityPersonNumber,
						// "activityTeam": "A组",
						// "activityIntroduce": this.activityProfile,
						// "activityImg": this.activityImageUrl,
						// "activityTeamList": this.teams
					}

					console.log(activityObj, '发送数据')
					if (this.activityId != '') {
						activityObj.id = this.activityId
						console.log(activityObj, '修改');
						this.$modal.loading("活动修改成功");
						updateActivityInfo(activityObj).then((res) => {
							console.log(res)
							if (res.code == 200) {

								setTimeout(res => {
									this.$tab.reLaunch("/subPackages/mine/myPublish");
									this.$modal.closeLoading();
									//跳转到我的发布页面(1s之后)
								}, 1000)
							}

						}, err => {
							console.log(err);
						})
					} else {
						console.log(activityObj, '创建');
						reqActivityInfo(activityObj).then((res) => {
							console.log(res)
							if (res.code == 200) {
								this.$modal.loading("活动创建成功");
								// this.tipsInfo="活动创建成功"
								// this.$refs.popup.open()//活动发布成功提示消息
								setTimeout(res => {
									this.$tab.reLaunch("/subPackages/mine/myPublish");
									this.$modal.closeLoading();
									//跳转到我的发布页面(1s之后)
								}, 1000)
							} else {
								this.submitInfo.content = "发布失败"
								this.submitInfo.isShowModal = true
							}
						})
					}
				}
			},
			djaljd(imgUrl) {
				return new Promise(function(resolve, reject) {
					const imgObj = new Image()
					ImgObj.src = imgUrl
					ImgObj.onload = function(res) {
						resolve(res)
					};
					ImgObj.onerror = function(err) {
						reject(err)
					};
				})
			},
			checkImgExists(imgUrl) {
				return new Promise(function(resolve, reject) {
					const imgObj = new Image()
					ImgObj.src = imgUrl
					ImgObj.onload = function(res) {
						resolve(res)
					};
					ImgObj.onerror = function(err) {
						reject(err)
					};
				})
			},
			// 修改活动信息
			updateActivityMsg(activityId) {
				this.$store.state.club.activityId = ""
				const data = {
					"id": activityId,
					"userId": uni.getStorageSync('userinfo').userid
				}
				// 开启消息提示效果
				uni.showToast({
					title: '加载中',
					icon: "loading",
					duration: 6000
				})
				console.log('获取');
				getActivityDetail(data).then(
					res => {
						console.log(res, '获取');
						// 解析活动详情数据
						const {
							data
						} = res
						// 整理活动详情数据
						console.log(data);
						this.activityName = data.name // 活动名称
						this.CurrentSize = this.activityName.length //活动名称长度
						this.activityType = data.activityType //活动类型
						// this.startTime = data.activityStarttime.substring(0, data
						// 	.activityStarttime.length - 3) //开始时间
						// this.endTime = data.activityEndtime.substring(0, data
						// 	.activityEndtime.length - 3) // 	结束时间
						// this.sinUpEndTime = data.activityDeadlinetime.substring(0, data
						// 	.activityDeadlinetime.length -
						// 	3) //截至报名时间
						this.singUpCost = data.price //     费用
						this.teamNum = data.groupInfoList.length // 队伍数量(默认为两个队伍)
						this.activityPersonNumber = data.numbers //设置队伍总数
						this.teamNumber = data.groupInfoList[0].ranksNumber //每个队伍人数
						let teamsarr = []
						for (let i = 0; i < data.groupInfoList.length; i++) {
							let arr = {
								"name": data.groupInfoList[i].ranksName,
								"numbers": data.groupInfoList[i].ranksNumber
							}
							teamsarr.push(arr)
						}
						this.teams = teamsarr

						this.reserveThree = data.reserveThree
						if (data.reserveThree == 1) {
							this.determinename = "是"
							for (let i = 0; i < data.customFieldsList.length; i++) {
								let arr = [{
									"name": data.customFieldsList[i].name
								}]
								for (let j = 0; j < this.InformationBox.length; j++) {
									if (data.customFieldsList[i].name === this.InformationBox[j].name) {
										this.InformationBox[j].selected = true
										break;
									} else if (j == this.InformationBox.length - 1) {
										let Boxarr = [{
											"name": data.customFieldsList[i].name,
											"selected": true
										}]
										this.InformationBox = [...this.InformationBox, ...Boxarr]
									}
								}
								this.InformationBoxarr = [...this.InformationBoxarr, ...arr]
							}
						}
						let week = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"]
						console.log(this.InformationBox)
						this.latitude = data.latitude //经度
						this.longitude = data.longitude, //维度

							this.activityProfile = data.introduce // 活动简介
						let deadline = data.deadlineTime.match(/\d+(\.\d+)?/g)
						let end = data.endTime.match(/\d+(\.\d+)?/g)
						let start = data.startTime.match(/\d+(\.\d+)?/g)
						this.start_block = this.get_day(start[3])
						this.start_day = start[1] + "月" + start[2] + "日"
						this.start_divide = start[4] + "分"
						this.start_time = (start[3]) + "时"
						this.start_week = "(" + week[new Date(start[0] + '-' + start[1] + '-' + start[2]).getDay()] +
							")" //没有搞
						this.end_block = this.get_day(end[3])
						this.end_day = end[1] + "月" + end[2] + "日"
						this.end_divide = end[4] + "分"
						this.end_time = (end[3]) + "时"
						this.end_week = "(" + week[new Date(end[0] + '-' + end[1] + '-' + end[2]).getDay()] + ")" //没有搞
						this.report_block = this.get_day(deadline[3])
						this.report_day = deadline[1] + "月" + deadline[2] + "日"
						this.report_divide = deadline[4] + "分"
						this.report_time = deadline[3] + "时"
						this.report_week = "(" + week[new Date(deadline[0] + '-' + deadline[1] + '-' + deadline[2])
							.getDay()] + ")" //没有搞
						this.startTime = start[3] + ":" + start[4] + "-" + end[3] + ":" + end[4]
						this.sinUpEndTime = deadline[3] + ":" + deadline[4]
						this.start_year = start[0] + '-' + start[1] + '-' + start[2]
						this.end_year = end[0] + '-' + end[1] + '-' + end[2]
						this.report_year = deadline[0] + '-' + deadline[1] + '-' + deadline[2]
						this.starttime(this.start_block)
						this.endtime(this.end_block)
						this.reporttime(this.report_block)
						let bat = {
							"LeIsureTime": start[0] + '-' + start[1] + '-' + start[2]
						}
						this.get_idle(bat)

						this.activityImageUrl = data.images // 活动图片地址
						this.area = data.location.substring(0, data.location.indexOf("-"))
						this.activitySite = data.location.match(/-(\S*)/)[1] // 活动场地
						this.fileList1 = [{
							url: 'http://162.14.204.143:9000' + data.images
						}] //设置上传图片默认地址
						// 清除消息提示效果
						uni.hideToast()
					},
					err => {
						console.log("err");
					}
				)
			}
		},
		onShow(e) {
			this.activityId = this.$store.state.club.activityId
			if (this.$store.state.club.activityId != "") {
				this.updateActivityMsg(this.$store.state.club.activityId)
				this.activityIdnot === 0
				console.log(this.activityIdnot)
			} else {
				if (this.buttonnot==0) {
					this.gettime()
					console.log( '图片触发了这个')
				} else {
					this.buttonnot = 0
				}

			}
		},
		onLoad(e) {
			this.activitytypepost();
			console.log(this.$store.state.club.activityId)

			let token = uni.getStorageSync("token")
			if (!token) {
				uni.showToast({
					title: '请先授权登录！',
					icon: 'error',
					duration: 1000
				})
				return setTimeout(() => {
					this.$tab.switchTab("/pages/mine/index");
				}, 2000)
			} else {
				var user = this.$store.state.user
				this.Telephone = user.phone
				this.publisher = user.nickname
			}
			// 开始的最小时间戳
			console.log("开始最小时间戳：", this.minStartData)
			// 活动结束最小时间戳
			this.minEndData = Date.now() + 60 * 60 * 1000
			console.log('结束最小时间戳', this.minEndData)
		},
		onBackPress() {
			if (this.$refs.pictureTailor.isShow) {
				this.$refs.pictureTailor.Hide();
			}
			return true;
		},
		components: {
			gmyImgCropper
		}


	}
</script>

<style>
	/*  */
	.uni-list-cell {
		justify-content: flex-start
	}

	.uni-popup-message__box {
		text-align: center;
	}

	page {
		background-color: rgba(255, 255, 255, 1);
		/* background-color: red; */
	}

	.ReleaseActivity {
		width: 720rpx;
		margin: auto;
		/* position: relative; */
		padding: 0 25rpx;

		/* background-color: rgba(255, 255, 255, .6); */
		box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px;
		border-radius: 16rpx;
		color: rgba(16, 16, 16, 1);
		text-align: center;
		font-family: Arial;
	}

	/* 活动名称 */

	.nameSize {
		display: flex;
		align-items: center;
		font-size: 32rpx;
		color: rgba(190, 190, 190, 1);

	}

	.activityNameShow {
		display: flex;
		align-items: center;
		color: rgba(190, 190, 190, 1);
	}

	.selectActivity {
		font-size: 32rpx;
		font-family: SourceHanSansSC-regular;
		color: rgba(190, 190, 190, 1);
	}

	.endTimeP {
		display: flex;
		align-items: center;
		font-size: 32rpx;
		text-align: left;
		font-family: SourceHanSansSC-regular;
		color: rgba(190, 190, 190, 1);
	}

	.u-modal__content__text {
		text-align: center;
	}



	input {
		width: 460rpx;
		/* border: 1px solid red; */
		height: 46rpx;
		text-align: right;
		font-size: 32rpx;
		color: rgba(190, 190, 190, 1);
		font-family: PingFangSC-regular;
	}

	/* input输入框placholdeer的样式 */
	.pcs {
		font-size: 32rpx;
		color: rgba(190, 190, 190, 1);
		font-family: PingFangSC-regular;
	}

	.f_first {
		display: flex;
		justify-content: space-between;
		height: 90rpx;
		align-items: center;
		/* border-bottom: 1px solid rgba(190, 190, 190, .5); */
	}

	.f_first_img {

		display: flex;
		justify-content: space-between;
		height: 90rpx;
		align-items: center;
		margin-top: 170rpx;
	}

	.f_first>input {
		/* width: 258rpx; */
		height: 46rpx;
		color: rgba(153, 153, 153, 1);
		font-size: 28rpx;
		text-align: right;
		margin-right: 28rpx;
		font-family: Microsoft Yahei;
		/* border: 1px solid rgba(187, 187, 187, 1); */
	}

	.attr {

		color: rgba(16, 16, 16, 1);
		font-size: 32rpx;
		text-align: left;
		line-height: 80rpx;
		font-family: PingFangSC-regular;
	}

	.uni-date__x-input {
		height: 36rpx;
		line-height: 0rpx;
	}

	.getImageBox {
		/* width: 250rpx;
		height: 250rpx; */
		/* display: flex;
		flex-direction: row-reverse; */
	}

	.f_first:nth-child(8)>input {
		border: none;
		text-align: right;
	}

	.SettingActivity {
		color: rgba(206, 206, 206, 1);
		font-size: 32rpx;
		text-align: left;
		font-family: PingFangSC-regular;
	}

	.settingTeamBox {
		width: 710rpx;
		margin-left: -20rpx;
		border-radius: 10rpx;
		background-color: rgba(255, 255, 255, 1);
		color: rgba(16, 16, 16, 1);
		box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
		justify-content: space-between;
	}

	.TeamNum {
		display: flex;
		align-items: center;
		margin: 12rpx;
		line-height: 80rpx;
	}

	.TeamNum text {
		margin-right: 30rpx;
	}

	/* .TeamNum>input {
		text-align: center;
	} */
	.teamName input {
		color: #303133;
	}

	.teamName {
		padding: 12rpx;
		display: flex;
		line-height: 60rpx
	}

	.teamId {
		line-height: 60rpx;
		margin-right: 20rpx;
		color: #000000;
	}

	.teamName input {
		height: 60rpx;
		text-align: left;
	}

	/* 活动简介样式 */
	#activityDescription {
		/* position: relative; */
		display: flex;
		height: 280rpx;
		align-items: flex-start;
		flex-direction: column;
	}

	.activityProfile {
		width: 100%;
		font-size: 20rpx;
	}

	#activityDescription textarea {
		line-height: 40rpx;
		color: rgba(136, 136, 136, 1);
		font-size: 28rpx;
		text-align: left;
		height: 350rpx ! important;
		font-family: Microsoft Yahei;
	}

	/* 活动图片 ------------------------------------------------------*/

	.activityImage {
		height: 200rpx;
		margin-right: 10rpx;
		border: 1px solid red;
	}

	.activityImage image {
		width: 210rpx;
		height: 200rpx;

	}






	/* 发布按钮 */
	#releaseBtn {
		width: 172px;
		height: 86rpx;
		border-radius: 32rpx;
		background-color: rgba(43, 162, 69, 1);
		color: rgba(255, 255, 255, 1);
		font-size: 32rpx;
		text-align: center;
		font-family: Microsoft Yahei;

	}

	.bottom {
		width: 100%;
		background-color: #ffffff;
	}

	.head {
		display: flex;
		background-color: #ffffff;
	}

	.head-left {
		color: #00aaff;
		font-size: 40rpx;
		margin-left: 20rpx;
	}

	.head-right {
		color: #00aaff;
		font-size: 40rpx;
		flex: 1;
		text-align: right;
		margin-right: 20rpx;
	}

	.Divider {
		background: #E0E3DA;
		width: 100%;
		height: 5rpx;
	}

	.idletime {
		color: #000;
		font-size: 30rpx;
		font-weight: bold;
		padding: 20rpx 0 0 20rpx;
		background-color: #ffffff;

	}

	.Proportion {

		display: flex;
		background-color: #ffffff;
	}

	.Proportion-text {
		width: 160rpx;
		height: 60rpx;
		border-radius: 25rpx;
		margin-left: 75rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: 10rpx;
		background-color: #c3dff7;
	}

	.recommend-text {
		width: 160rpx;
		height: 60rpx;
		border-radius: 25rpx;
		margin-left: 75rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: 10rpx;
	}

	.start {
		display: flex;
		background-color: #ffffff;
	}

	.week {
		width: 220rpx;
		height: 60rpx;
		background-color: #e2e2e2;
		font-size: 25rpx;
		border-radius: 15rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-left: 80rpx;
		margin-top: 10rpx;
	}

	.day {
		width: 100rpx;
		height: 60rpx;
		background-color: #e2e2e2;
		font-size: 25rpx;
		border-radius: 15rpx;
		margin-left: 36rpx;
		margin-top: 10rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.cut {
		width: 100%;
		height: 200rpx;
		background-color: #ffffff;
		text-decoration: underline;
	}

	.bottom-deadline {
		width: 100%;
		height: 200rpx;
		background-color: #ffffff;
	}

	.blank {
		background-color: #ffffff;
		height: 50rpx;
	}

	.Deadline-text {
		width: 200rpx;
		height: 60rpx;
		border-radius: 25rpx;

		margin-left: 40rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-top: 10rpx;
	}

	.rule {
		background-color: #ffffff;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.rule_frame {
		color: #000;
		border: 2rpx solid #acacac;
		width: 90%;
		height: 100rpx;
		margin-top: 15rpx;
		text-align: center;
	}

	.report_week {
		width: 220rpx;
		height: 60rpx;
		background-color: #e2e2e2;
		font-size: 25rpx;
		border-radius: 15rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		margin-left: 40rpx;
		margin-top: 10rpx;
	}

	.report_day {
		width: 100rpx;
		height: 60rpx;
		background-color: #e2e2e2;
		font-size: 25rpx;
		border-radius: 15rpx;
		margin-left: 53rpx;
		margin-top: 10rpx;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.star {
		color: #ff0000;
		text-align: left
	}

	.RegistrationInformation-text {
		text-align: left;
		margin: 20rpx 0 0 20rpx;
		font-size: 30rpx;
	}

	.selector {
		text-align: right;
		flex: 1;
		margin: 20rpx 0 0 220rpx;
	}

	.uni-input {

		height: 60rpx;
		width: 200rpx;
		border: 1rpx solid #d0d0d0;
		text-align: center;
		border-radius: 15rpx;
		margin: 20rpx 0 0 20rpx;
	}

	.informationview {
		display: flex;
		width: 100%;
		flex-flow: wrap;
		margin-bottom: 15rpx;
	}

	.informationview-img {
		height: 60rpx;
		width: 60rpx;
		text-align: center;
		margin: 20rpx 0 0 20rpx;
	}
</style>
